/**
 * @Author: zhoujie
 * @Date: 2019/08/24
 * @Last Modified by: 杨光宇
 * @Last Modified time: 2021-02-04 10:52:22
 */

const RouteView = () => import('@/layout/RouteView');
// 异步路由组件加载
const AsyncComponent = __name__ => () => import(`@/pages/${__name__}`);

/** 维修管理 菜单路由 */
const menuRoutes = [
  /** 维修管理 S */
  {
    path: '/repair',
    meta: {
      title: '服务管理',
      icon: 'el-icon-s-home'
    },
    redirect: '/repair/basicparams',
    component: RouteView,

    children: [
      // {
      //   path: '/repair/batchEventManagement',
      //   meta: {
      //     title: '批量活动管理',
      //     trainModuleId: '8015'
      //   },
      //   redirect: '/repair/batchEventManagement/activityDistribution',
      //   component: RouteView,
      //   children: [
      //     {
      //       path: '/repair/batchEventManagement/activityDistribution',
      //       meta: {
      //         title: '批量活动审核及下发',
      //         keepAlive: true,
      //         trainModuleId: '801510'
      //       },
      //       component: AsyncComponent('repair/batchEventManagement/activityDistribution')
      //     },
      //     {
      //       path: '/repair/batchEventManagement/activityPerformanceQuery',
      //       meta: {
      //         title: '批量活动绩效查询',
      //         keepAlive: true,
      //         trainModuleId: '801510'
      //       },
      //       component: AsyncComponent('repair/batchEventManagement/activityPerformanceQuery')
      //     },
      //     {
      //       path: '/repair/batchEventManagement/activityQueryCDuan',
      //       meta: {
      //         title: '批量活动查询',
      //         keepAlive: true,
      //         trainModuleId: '801510'
      //       },
      //       component: AsyncComponent('repair/batchEventManagement/activityQueryCDuan')
      //     },
      //     {
      //       path: '/repair/batchEventManagement/activityQueryJingxsDuan',
      //       meta: {
      //         title: '批量活动查询',
      //         keepAlive: true,
      //         trainModuleId: '801510'
      //       },
      //       component: AsyncComponent('repair/batchEventManagement/activityQueryJingxsDuan')
      //     },
      //     {
      //       path: '/repair/batchEventManagement/activityClaim',
      //       meta: {
      //         title: '批量活动索赔审核',
      //         keepAlive: true,
      //         trainModuleId: '801510'
      //       },
      //       component: AsyncComponent('repair/batchEventManagement/activityClaim')
      //     },
      //     {
      //       path: '/repair/batchEventManagement/carStatusAndDealer',
      //       meta: {
      //         title: '车辆状态及责任经销商修改',
      //         keepAlive: true,
      //         trainModuleId: '801510'
      //       },
      //       component: AsyncComponent('repair/batchEventManagement/carStatusAndDealer')
      //     },

      //     {
      //       path: '/repair/batchEventManagement/activityExecutionStatusQueryCDuan',
      //       meta: {
      //         title: '批量活动执行情况查询',
      //         keepAlive: true,
      //         trainModuleId: '801510'
      //       },
      //       component: AsyncComponent('repair/batchEventManagement/activityExecutionStatusQueryCDuan')
      //     },
      //     {
      //       path: '/repair/batchEventManagement/activityExecutionStatusQueryJingxsDuan',
      //       meta: {
      //         title: '批量活动执行情况查询',
      //         keepAlive: true,
      //         trainModuleId: '801510'
      //       },
      //       component: AsyncComponent('repair/batchEventManagement/activityExecutionStatusQueryJingxsDuan')
      //     }
      //   ]
      // },
      // {
      //   path: '/repair/threePacksOfManager',
      //   meta: {
      //     title: '三包管理 '
      //   },
      //   redirect: '/repair/threePacksOfManager/regulationsQueryCDuan',
      //   component: RouteView,
      //   children: [
      //     {
      //       path: '/repair/threePacksOfManager/regulationsQueryCDuan',
      //       meta: {
      //         title: '三包法规查询',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/regulationsQueryCDuan')
      //     },
      //     {
      //       path: '/repair/threePacksOfManager/regulationsQueryJingxsDuan',
      //       meta: {
      //         title: '三包法规查询',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/regulationsQueryJingxsDuan')
      //     },
      //     {
      //       path: '/repair/threePacksOfManager/assemblyAndRegulationsCDuan',
      //       meta: {
      //         title: '总成与法规关系维护',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/assemblyAndRegulationsCDuan')
      //     },
      //     {
      //       path: '/repair/threePacksOfManager/assemblyAndRegulationsJingxsDuan',
      //       meta: {
      //         title: '总成与法规关系查询',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/assemblyAndRegulationsJingxsDuan')
      //     },
      //     {
      //       path: '/repair/threePacksOfManager/assemblyAndAccessoriesCDuan',
      //       meta: {
      //         title: '总成与配件关系维护',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/assemblyAndAccessoriesCDuan')
      //     },
      //     {
      //       path: '/repair/threePacksOfManager/assemblyAndAccessoriesJingxsDuan',
      //       meta: {
      //         title: '总成与配件关系查询',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/assemblyAndAccessoriesJingxsDuan')
      //     },
      //     {
      //       path: '/repair/threePacksOfManager/exceptionalPartsMaintenanceCDuan',
      //       meta: {
      //         title: '三包例外配件维护',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/exceptionalPartsMaintenanceCDuan')
      //     },
      //     {
      //       path: '/repair/threePacksOfManager/exceptionalPartsMaintenanceJingxsDuan',
      //       meta: {
      //         title: '三包例外配件查询',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/exceptionalPartsMaintenanceJingxsDuan')
      //     },
      //     {
      //       path: '/repair/threePacksOfManager/warningParameterManagementCDuan',
      //       meta: {
      //         title: '三包预警参数管理',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/warningParameterManagementCDuan')
      //     },
      //     {
      //       path: '/repair/threePacksOfManager/warningParameterManagementJingxsDuan',
      //       meta: {
      //         title: '三包预警参数查询',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/warningParameterManagementJingxsDuan')
      //     },
      //     {
      //       path: '/repair/threePacksOfManager/warningQueryCDuan',
      //       meta: {
      //         title: '三包预警查询',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/warningQueryCDuan')
      //     },
      //     {
      //       path: '/repair/threePacksOfManager/warningQueryJingxsDuan',
      //       meta: {
      //         title: '三包预警查询',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/threePacksOfManager/warningQueryJingxsDuan')
      //     }
      //   ]
      // },
      // {
      //   path: '/repair/newEnergyVehicleLifetime',
      //   meta: {
      //     title: '新能源车辆终身质保'
      //   },
      //   redirect: '/repair/newEnergyVehicleLifetime/vehicleLifetimeReviewCDuan',
      //   component: RouteView,
      //   children: [
      //     {
      //       path: '/repair/newEnergyVehicleLifetime/vehicleLifetimeReviewCDuan',
      //       meta: {
      //         title: '车辆终身质保审核',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/newEnergyVehicleLifetime/vehicleLifetimeReviewCDuan')
      //     },
      //     {
      //       path: '/repair/newEnergyVehicleLifetime/vehicleLifetimeReviewQueryCDuan',
      //       meta: {
      //         title: '车辆终身质保查询',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/newEnergyVehicleLifetime/vehicleLifetimeReviewQueryCDuan')
      //     },
      //     {
      //       path: '/repair/newEnergyVehicleLifetime/vehicleLifetimeReviewQueryJingxsDuan',
      //       meta: {
      //         title: '车辆终身质保信息查询',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/newEnergyVehicleLifetime/vehicleLifetimeReviewQueryJingxsDuan')
      //     },
      //     {
      //       path: '/repair/newEnergyVehicleLifetime/vehicleLifetimeReviewJingxsDuan',
      //       meta: {
      //         title: '车辆终身质保信息录入',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/newEnergyVehicleLifetime/vehicleLifetimeReviewJingxsDuan')
      //     }
      //   ]
      // },
      // 里程保修日期变更
      {
        path: '/repair/mileageDateChange',
        meta: {
          title: '里程保修日期变更'
        },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/repair/mileageDateChange/mileageModify',
            meta: {
              title: '里程变更申请',
              keepAlive: true
            },
            component: AsyncComponent('repair/mileageDateChange/mileageModify')
          },
          {
            path: '/repair/mileageDateChange/mileageApprove',
            meta: {
              title: '里程变更审核',
              keepAlive: true,
              trainModuleId: '551011-4'
            },
            component: AsyncComponent('repair/mileageDateChange/mileageApprove')
          },
          {
            path: '/repair/mileageDateChange/mileageSearch',
            meta: {
              title: '里程变更查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/mileageDateChange/mileageSearch')
          },
          {
            path: '/repair/mileageDateChange/warrantyDateModify',
            meta: {
              title: '保修日期变更申请',
              keepAlive: true
            },
            component: AsyncComponent('repair/mileageDateChange/warrantyDateModify')
          },
          {
            path: '/repair/mileageDateChange/warrantyDateApprove',
            meta: {
              title: '保修日期变更审核',
              keepAlive: true
            },
            component: AsyncComponent('repair/mileageDateChange/warrantyDateApprove')
          },

          {
            path: '/repair/mileageDateChange/warrantyDateSearch',
            meta: {
              title: '保修日期变更查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/mileageDateChange/warrantyDateSearch')
          }
        ]
      },
      // 外出救援
      {
        path: '/repair/rescue',
        meta: {
          title: '外出救援'
        },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/repair/rescue/rescueManage',
            meta: {
              title: '外出救援维护',
              keepAlive: true
            },
            component: AsyncComponent('repair/rescue/rescueManage')
          },
          {
            path: '/repair/rescue/rescueQuery',
            meta: {
              title: '外出救援查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/rescue/rescueQuery')
          },
          {
            path: '/repair/rescue/rescueApprove',
            meta: {
              title: '外出救援审核',
              keepAlive: true
            },
            component: AsyncComponent('repair/rescue/rescueApprove')
          },
          {
            path: '/repair/rescue/rescueQuery_oem',
            meta: {
              title: '外出救援查询', // 厂端
              keepAlive: true
            },
            component: AsyncComponent('repair/rescue/rescueQuery_oem')
          }
        ]
      },

      // 维修基础参数
      {
        path: '/repair/repairBusiness',
        meta: {
          title: '维修基础参数'
        },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/repair/repairBusiness/labourHour',
            meta: {
              title: '工时维护',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairBusiness/labourHour')
          },



          // 维修套餐
          {
            path: '/repair/repairBusiness/repairPackage',
            meta: {
              title: '维修套餐维护',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairBusiness/repairPackage')
          },
          {
            path: '/repair/repairBusiness/packageManagement',
            meta: {
              title: '维修套餐下发',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairBusiness/packageManagement')
          },
          {
            path: '/repair/repairBusiness/supplierInformation',
            meta: {
              title: '供应商信息维护',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairBusiness/supplierInformation')
          },
          {
            path: '/repair/repairBusiness/notFirstMaintenance',
            meta: {
              title: '非首保车辆维护',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairBusiness/notFirstMaintenance')
          },
          {
            path: '/repair/repairBusiness/packageCounts',
            meta: {
              title: '维修套餐次数维护',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairBusiness/packageCounts')
          },
          // 工时维护 - 厂端
          {
            path: '/repair/repairBusiness/labourHour_oem',
            meta: {
              title: '工时维护-厂端',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairBusiness/labourHour_oem')
          },

          // 维修套餐 - 厂端
          {
            path: '/repair/repairBusiness/repairPackage_oem',
            meta: {
              title: '维修套餐维护',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairBusiness/repairPackage_oem')
          },

          {
            path: '/repair/repairBusiness/additionalItem',
            meta: {
              title: '附加项目定义',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairBusiness/additionalItem')
          }
        ]
      },
      // 维修服务管理
      {
        path: '/repair/repairManage',
        meta: {
          title: '维修服务管理'
        },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/repair/repairManage/repairQuery',
            meta: {
              title: '维修查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairManage/repairQuery')
          },
          {
            path: '/repair/repairManage/repairFeeQuery',
            meta: {
              title: '费用结算查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairManage/repairFeeQuery')
          },
          {
            path: '/repair/repairManage/PDIQueryPage',
            meta: {
              title: 'PDI查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairManage/PDIQueryPage')
          }
        ]
      },
      // 充电桩管理
      {
        path: '/repair/chargingPile',
        meta: {
          title: '充电桩管理'
        },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/repair/chargingPile/Query',
            meta: {
              title: '充电桩权益查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/chargingPile/Query')
          }
        ]
      },
      // 售后财务管理
      {
        path: '/repair/repairFinance',
        meta: {
          title: '售后财务管理'
        },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/repair/repairFinance/received',
            meta: {
              title: '售后收款',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairFinance/received')
          },
          {
            path: '/repair/repairFinance/advancesReceived',
            meta: {
              title: '预收款管理',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairFinance/advancesReceived')
          }
        ]
      },
      {
        path: '/repair/basicparams',
        meta: {
          title: '服务参数'
        },
        redirect: '/repair/repairBusiness/basicParameters',
        component: RouteView,
        children: [
          {
            path: '/repair/basicparams/repairParam',
            meta: {
              title: '服务参数',
              keepAlive: true,
              trainModuleId: '551010'
            },
            component: AsyncComponent('repair/basicparams/repairParam')
          },
          {
            path: '/repair/repairBusiness/basicParameters',
            meta: {
              title: '维修基础参数',
              keepAlive: true,
              trainModuleId: '551010'
            },
            component: AsyncComponent('repair/repairBusiness/basicParameters')
          },
          {
            path: '/repair/repairBusiness/labourManager',
            meta: {
              title: '维修项目管理',
              keepAlive: true,
              trainModuleId: '551011'
            },
            component: AsyncComponent('repair/repairBusiness/labourManager')
          },
          {
            path: '/repair/repairBusiness/proLabourManager',
            meta: {
              title: '建议维修项目',
              keepAlive: true,
              trainModuleId: '551027'
            },
            component: AsyncComponent('repair/repairBusiness/proLabourManager')
          },
          {
            path: '/repair/repairBusiness/appointmentLimit',
            meta: {
              title: '预约限量',
              keepAlive: true,
              trainModuleId: '551012'
            },
            component: AsyncComponent('repair/repairBusiness/appointmentLimit')
          },
          {
            path: '/repair/repairBusiness/unitPriceDefined',
            meta: {
              title: '工时单价定义',
              keepAlive: true,
              trainModuleId: '551013'
            },
            component: AsyncComponent('repair/repairBusiness/unitPriceDefined')
          },
          {
            path: '/repair/activitiesManage/activitiesManage',
            meta: {
              title: '服务活动',
              keepAlive: true,
              trainModuleId: '551014'
            },
            component: AsyncComponent('repair/activitiesManage/activitiesManage')
          },
          {
            path: '/repair/repairBusiness/instituteDefined',
            meta: {
              title: '班组定义',
              keepAlive: true,
              trainModuleId: '551016'
            },
            component: AsyncComponent('repair/repairBusiness/instituteDefined')
          },
          {
            path: '/repair/repairBusiness/LocationDefined',
            meta: {
              title: '工位定义',
              keepAlive: true,
              trainModuleId: '551017'
            },
            component: AsyncComponent('repair/repairBusiness/LocationDefined')
          },
          {
            path: '/repair/repairBusiness/additionalItem',
            meta: {
              title: '附加项目定义',
              keepAlive: true,
              trainModuleId: '551018'
            },
            component: AsyncComponent('repair/repairBusiness/additionalItem')
          },
          {
            path: '/repair/repairBusiness/repairCombManger',
            meta: {
              title: '维修组合管理',
              keepAlive: true,
              trainModuleId: '551019'
            },
            component: AsyncComponent('repair/repairBusiness/repairCombManger')
          },
          {
            path: '/repair/repairBusiness/preferentialWay',
            meta: {
              title: '优惠模式定义',
              keepAlive: true,
              trainModuleId: '551020'
            },
            component: AsyncComponent('repair/repairBusiness/preferentialWay')
          },
          {
            path: '/admin/cars/brandcarsmodels',
            meta: {
              title: '品牌车系车型',
              keepAlive: true,
              trainModuleId: '551024'
            },
            component: AsyncComponent('common/cars/brandcarsModels/index')
          },
          {
            path: '/admin/cars/colorcars',
            meta: {
              title: '车辆颜色',
              keepAlive: true,
              trainModuleId: '551025'
            },
            component: AsyncComponent('common/cars/colorCars/index')
          },

          {
            path: '/repair/basicparams/dealerAuthorization',
            meta: {
              title: '经销商多级授权',
              keepAlive: true,
              trainModuleId: '551022'
            },
            component: AsyncComponent('repair/basicparams/dealerAuthorization')
          },
          {
            path: '/repair/basicparams/contactsCustomer',
            meta: {
              title: '业务往来客户维护',
              keepAlive: true
            },
            component: AsyncComponent('repair/basicparams/contactsCustomer')
          }
        ]
      },
      // 车辆防盗码申请
      {
        path: '/repair/antitheft',
        meta: {
          title: '防盗码管理'
        },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/repair/antitheft/verification',
            meta: {
              title: '车辆防盗码回复',
              keepAlive: true
            },
            component: AsyncComponent('repair/antitheft/verification')
          }]
      },

      // 充电桩权益管理
      {
        path: '/repair/chargingStation',
        meta: {
          title: '充电权益管理'
        },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/repair/chargingStation/inquire',
            meta: {
              title: '充电权益查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/chargingStation/inquire')
          }]
      },

      // 售后报表管理
      {
        path: '/repair/antitheft',
        meta: {
          title: '售后报表管理'
        },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/serviceass/qualityControlRates/index',
            meta: {
              title: '质量信息反馈达标率',
              keepAlive: true
            },
            component: AsyncComponent('serviceass/qualityControlRates/index')
          },
          {
            path: '/claimDemage/BasicData/ClaimCheckReport/index',
            meta: {
              title: '索赔单审核报表',
              keepAlive: true
            },
            component: AsyncComponent('claimDemage/BasicData/ClaimCheckReport/index')
          },
          {
            path: '/claimDemage/BasicData/ClaimStatementReport/index',
            meta: {
              title: '索赔结算统计',
              keepAlive: true
            },
            component: AsyncComponent('claimDemage/BasicData/ClaimStatementReport/index')
          },
          {
            path: '/claimDemage/BasicData/FaultPartReport/index',
            meta: {
              title: '故障件统计',
              keepAlive: true
            },
            component: AsyncComponent('claimDemage/BasicData/FaultPartReport/index')
          },

        ]
      },
      //旧件报废管理
      // {
      //   path: '/repair/usedScrap',
      //   meta: {
      //     title: '旧件报废管理'
      //   },
      //   component: RouteView,
      //   children: [
      //     {
      //       path: '/repair/usedScrap/usedScrapAudit',
      //       meta: {
      //         title: '旧件报废审核',
      //         keepAlive: true
      //       },
      //       component: AsyncComponent('repair/usedScrap/usedScrapAudit')
      //     }]
      // },

      // 档案管理
      {
        path: '/customerRepair/customerInfo',
        meta: {
          title: '档案管理'
        },
        redirect: '/customerRepair/customerInfo/ownerVehicleManagement',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/customerInfo/ownerVehicleManagement',
            meta: {
              title: '车主车辆管理',
              keepAlive: true,
              trainModuleId: '552010'
            },
            component: AsyncComponent('customerRepair/customerInfo/ownerVehicleManagement')
          },
          {
            path: '/customerRepair/customerInfo/customerGrade',
            meta: {
              title: '维护客户级别',
              keepAlive: true,
              trainModuleId: '552012'
            },
            component: AsyncComponent('customerRepair/customerInfo/customerGrade/index')
          },
          {
            path: '/customerRepair/customerInfo/changeCustomerGrade',
            meta: {
              title: '更改客户级别',
              keepAlive: true,
              trainModuleId: '552013'
            },
            component: AsyncComponent('customerRepair/customerInfo/changeCustomerGrade')
          },

          {
            path: '/repair/repairBusiness/insuranceCompany',
            meta: {
              title: '保险公司',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairBusiness/insuranceCompany')
          }
        ]
      },
      // 服务预约
      {
        path: '/repair/repairReception',
        meta: {
          title: '服务预约管理'
        },
        redirect: '/repair/repairReception/precontractArrange',
        component: RouteView,
        children: [
          {
            path: '/repair/repairReception/precontractArrange',
            meta: {
              title: '预约单创建',
              keepAlive: true,
              trainModuleId: '556010'
            },
            component: AsyncComponent('repair/repairReception/precontractArrange')
          },
          {
            path: '/repair/repairReception/precontractStatus',
            meta: {
              title: '预约单查询',
              keepAlive: true,
              trainModuleId: '556015'
            },
            component: AsyncComponent('repair/repairReception/precontractStatus')
          },
          {
            path: '/customerRepair/customerCare/ActivitiesInvite',
            meta: {
              title: '行动召回邀约',
              keepAlive: true,
              trainModuleId: '553011'
            },
            component: AsyncComponent('customerRepair/customerCare/ActivitiesInvite')
          }
        ]
      },
      //
      {
        path: '/repair/repairReception1',
        meta: {
          title: '交车结算'
        },
        redirect: '/repair/repairReception/feesSettlement',
        component: RouteView,
        children: [
          {
            path: '/repair/repairReception/printfinance',
            meta: {
              title: '打印结算单',
              keepAlive: true,
              trainModuleId: '557012'
            },
            component: AsyncComponent('repair/repairReception/printfinance')
          },
          {
            path: '/repair/repairReception/mergePrintfinance',
            meta: {
              title: '合并打印结算单',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairReception/mergePrintfinance')
          },
          {
            path: '/finance/repair/receivables',
            meta: {
              title: '收银管理',
              keepAlive: true,
              trainModuleId: '557013'
            },
            component: AsyncComponent('finance/repairFinance/receivables')
          }
        ]
      },

      {
        path: '/repair/queryStatistics',
        meta: {
          title: '服务报表'
        },
        redirect: '/repair/queryStatistics/getTechnicianHourReport',
        component: RouteView,
        children: [
          {
            path: '/repair/queryStatistics/getTechnicianHourReport',
            meta: {
              title: '技师工时统计',
              keepAlive: true,
              trainModuleId: '558010'
            },
            component: AsyncComponent('repair/queryStatistics/getTechnicianHourReport')
          },
          {
            path: '/repair/queryStatistics/getInCounts',
            meta: {
              title: '入场台次汇总',
              keepAlive: true,
              trainModuleId: '558011'
            },
            component: AsyncComponent('repair/queryStatistics/getInCounts')
          },
          {
            path: '/repair/queryStatistics/getTechnicianDayReport',
            meta: {
              title: '技师工时统计日报',
              keepAlive: true,
              trainModuleId: '558012'
            },
            component: AsyncComponent('repair/queryStatistics/getTechnicianDayReport')
          },
          {
            path: '/repair/queryStatistics/getDealerReceive',
            meta: {
              title: '营业收入汇总',
              keepAlive: true,
              trainModuleId: '558013'
            },
            component: AsyncComponent('repair/queryStatistics/getDealerReceive')
          },
          {
            path: '/repair/queryStatistics/getCustomerContribution',
            meta: {
              title: '客户贡献度',
              keepAlive: true,
              trainModuleId: '558014'
            },
            component: AsyncComponent('repair/queryStatistics/getCustomerContribution')
          },
          {
            path: '/repair/queryStatistics/getDealerSalesReport',
            meta: {
              title: '经销商营业额汇总',
              keepAlive: true,
              trainModuleId: '558015'
            },
            component: AsyncComponent('repair/queryStatistics/getDealerSalesReport')
          },
          {
            path: '/repair/queryStatistics/queryAllMaterial',
            meta: {
              title: '查询全部前台领料',
              keepAlive: true,
              trainModuleId: '558016'
            },
            component: AsyncComponent('repair/queryStatistics/queryAllMaterial')
          },
          {
            path: '/repair/queryStatistics/queryEstimateEntrust',
            meta: {
              title: '查询估算委托书',
              keepAlive: true,
              trainModuleId: '558017'
            },
            component: AsyncComponent('repair/queryStatistics/queryEstimateEntrust')
          },
          {
            path: '/repair/queryStatistics/queryCarMaintain',
            meta: {
              title: '车辆维修信息统计',
              keepAlive: true,
              trainModuleId: '558018'
            },
            component: AsyncComponent('repair/queryStatistics/queryCarMaintain')
          },
          {
            path: '/repair/queryStatistics/carMaintenanceExpensesApply',
            meta: {
              title: '新车保养费用申请单',
              keepAlive: true,
              trainModuleId: '558019'
            },
            component: AsyncComponent('repair/queryStatistics/carMaintenanceExpensesApply')
          },
          {
            path: '/repair/queryStatistics/maintainProcedureStatistics',
            meta: {
              title: '维修流程综合统计',
              keepAlive: true,
              trainModuleId: '558020'
            },
            component: AsyncComponent('repair/queryStatistics/maintainProcedureStatistics')
          },
          {
            path: '/repair/queryStatistics/peoplyEfficiencyJournaling',
            meta: {
              title: '原人工效率报表',
              keepAlive: true,
              trainModuleId: '558021'
            },
            component: AsyncComponent('repair/queryStatistics/peoplyEfficiencyJournaling')
          },
          {
            path: '/repair/queryStatistics/stationUtilize',
            meta: {
              title: '工位利用率',
              keepAlive: true,
              trainModuleId: '558022'
            },
            component: AsyncComponent('repair/queryStatistics/stationUtilize')
          },
          {
            path: '/repair/queryStatistics/managementReport',
            meta: {
              title: '经营月报',
              keepAlive: true,
              trainModuleId: '558023'
            },
            component: AsyncComponent('repair/queryStatistics/managementReport')
          },
          {
            path: '/repair/queryStatistics/ProcedureDuration',
            meta: {
              title: '流程时长统计',
              keepAlive: true,
              trainModuleId: '558024'
            },
            component: AsyncComponent('repair/queryStatistics/technologicalProcessHours')
          },
          {
            path: '/repair/queryStatistics/queryElsaPro',
            meta: {
              title: 'ElsaPro查询',
              keepAlive: true,
              trainModuleId: '558025'
            },
            component: AsyncComponent('repair/queryStatistics/queryElsaPro')
          },
          {
            path: '/repair/queryStatistics/queryPickUpOrder',
            meta: {
              title: '接车单查询',
              keepAlive: true,
              trainModuleId: '558026'
            },
            component: AsyncComponent('repair/queryStatistics/queryPickUpOrder')
          },
          {
            path: '/repair/queryStatistics/queryBusinessSummary',
            meta: {
              title: 'BM报表售后业务汇总',
              keepAlive: true,
              trainModuleId: '558028'
            },
            component: AsyncComponent('repair/queryStatistics/queryBusinessSummary')
          }
        ]
      },

      {
        path: '/repair/electronicArchives',
        meta: {
          title: '电子健康档案'
        },
        redirect: '/repair/electronicArchives/companyRegistration',
        component: RouteView,
        children: [
          {
            path: '/repair/electronicArchives/companyRegistration',
            meta: {
              title: '维修企业注册',
              keepAlive: true,
              trainModuleId: '559010'
            },
            component: AsyncComponent('repair/electronicArchives/companyRegistration')
          },
          {
            path: '/repair/electronicArchives/recordSupplementUpload',
            meta: {
              title: '健康档案补传',
              keepAlive: true,
              trainModuleId: '559011'
            },
            component: AsyncComponent('repair/electronicArchives/recordSupplementUpload')
          }
        ]
      },
      {
        path: '/repair/workshopManagement',
        meta: {
          title: '车间管理'
        },
        redirect: '/repair/workshopManagement/technicianScheduling',
        component: RouteView,
        children: [
          {
            path: '/repair/workshopManagement/technicianScheduling',
            meta: {
              title: '维护技师排班表',
              keepAlive: true
            },
            component: AsyncComponent('repair/workshopManagement/technicianScheduling')
          },
          {
            path: '/repair/workshopManagement/checkWorkAttendance',
            meta: {
              title: '维护技师考勤表',
              keepAlive: true
            },
            component: AsyncComponent('repair/workshopManagement/checkWorkAttendance')
          },
          {
            path: '/repair/workshopManagement/timeManagement',
            meta: {
              title: '时间管理报表',
              keepAlive: true
            },
            component: AsyncComponent('repair/workshopManagement/timeManagement')
          }
        ]
      },
      // 售后车型
      {
        path: '/repair/model',
        meta: {
          title: '售后车型'
        },
        component: RouteView,
        children: [
          {
            path: '/repair/model/repairModel',
            meta: {
              title: '车型管理',
              keepAlive: true
            },
            component: AsyncComponent('repair/model/repairModel')
          },
          {
            path: '/repair/model/repairModelProduct',
            meta: {
              title: '车型与整编关系',
              keepAlive: true
            },
            component: AsyncComponent('repair/model/repairModelProduct')
          }
        ]
      },
      {
        path: '/repair/repairReception2',
        meta: {
          title: '服务接待管理'
        },
        redirect: '/repair/repairReception/evaluation',
        component: RouteView,
        children: [
          {
            path: '/repair/repairReception/evaluation',
            meta: {
              title: '维修估价',
              keepAlive: true,
              trainModuleId: '555010'
            },
            component: AsyncComponent('repair/repairReception/evaluation')
          },
          {
            path: '/repair/repairReception/customer',
            name: 'repairOrder',
            meta: {
              title: '维修开单',
              keepAlive: true,
              trainModuleId: '555011'
            },
            component: AsyncComponent('repair/repairReception/customer')
          },
          {
            path: '/repair/workManage/repairDispatch',
            meta: {
              title: '维修派工',
              keepAlive: true,
              trainModuleId: '555012'
            },
            component: AsyncComponent('repair/workManage/repairDispatch')
          },
          {
            path: '/repair/repairReception/feesSettlement',
            meta: {
              title: '交车结算',
              keepAlive: true,
              trainModuleId: '557010'
            },
            component: AsyncComponent('repair/repairReception/feesSettlement')
          },
          {
            path: '/repair/repairReception/cancelFeeSettlement',
            meta: {
              title: '取消结算',
              keepAlive: true,
              trainModuleId: '557011'
            },
            component: AsyncComponent('repair/repairReception/cancelFeeSettlement')
          },
          {
            path: '/repair/repairReception/submitForSettlement',
            meta: {
              title: '质检/交车',
              keepAlive: true,
              trainModuleId: '555013'
            },
            component: AsyncComponent('repair/repairReception/submitForSettlement')
          },
          {
            path: '/repair/repairReception/giveCar',
            meta: {
              title: '交车确认',
              keepAlive: true
            },
            component: AsyncComponent('repair/repairReception/giveCar')
          },
          {
            path: '/repair/repairReception/repairBusinessManger',
            meta: {
              title: '维修业务查询',
              keepAlive: true,
              trainModuleId: '555014'
            },
            component: AsyncComponent('repair/repairReception/repairBusinessManger')
          },
          {
            path: '/repair/repairReception/repairOrderPrint',
            meta: {
              title: '工单合并打印',
              keepAlive: true,
              trainModuleId: '555017'
            },
            component: AsyncComponent('repair/repairReception/repairOrderPrint')
          },
          {
            path: '/repair/workManage/workAdjust',
            meta: {
              title: '车间工时调整',
              keepAlive: true,
              trainModuleId: '555016'
            },
            component: AsyncComponent('repair/workManage/workAdjust')
          },
          {
            path: '/workshop/reportForm/serviceBoard',
            meta: {
              title: '机电服务顾问看板',
              keepAlive: true
            },
            component: AsyncComponent('workshop/board/serviceBoard')
          },
          {
            path: '/workshop/reportForm/sheetSprayBoard',
            meta: {
              title: '钣喷服务顾问看板',
              keepAlive: true
            },
            component: AsyncComponent('workshop/board/sheetSprayBoard')
          }
        ]
      },
      {
        path: '/repair/workManage',
        meta: {
          title: '车间管理'
        },
        redirect: '/',
        component: RouteView,
        children: []
      },
      {
        path: '/repair/activitiesManage',
        meta: {
          title: '服务参数'
        },
        redirect: '/repair/activitiesManage/activitiesQuery',
        component: RouteView,
        children: [
          {
            path: '/repair/activitiesManage/activitiesQuery',
            meta: {
              title: '活动执行情况查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/activitiesManage/activitiesQuery')
          },
          {
            path: '/repair/activitiesManage/activitiesPackageQuery',
            meta: {
              title: '保养套餐查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/activitiesManage/activitiesPackageQuery')
          }
        ]
      },
      {
        path: '/repair/archivesManage',
        meta: {
          title: '健康档案管理'
        },
        redirect: '/repair/archivesManage/registManage',
        component: RouteView,
        children: [
          {
            path: '/repair/archivesManage/registManage',
            meta: {
              title: '维修企业注册维护',
              keepAlive: true
            },
            component: AsyncComponent('repair/archivesManage/registManage')
          },
          {
            path: '/repair/archivesManage/HealthQuery',
            meta: {
              title: '汽车维修电子健康记录查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/archivesManage/healthQuery')
          }
        ]
      },
      // add zhangxing
      {
        path: '/repair/oneTimeRepair',
        meta: {
          title: '一次修复管理'
        },
        redirect: '/repair/oneTimeRepair/share',
        component: RouteView,
        children: [
          {
            path: '/repair/oneTimeRepair/share',
            meta: {
              title: '400电话回访问题分享',
              keepAlive: true
            },
            component: AsyncComponent('repair/oneTimeRepair/share/index')
          },
          {
            path: '/repair/oneTimeRepair/manage',
            meta: {
              title: 'FIR自店管理分析',
              keepAlive: true
            },
            component: AsyncComponent('repair/oneTimeRepair/manage/index')
          },
          {
            path: '/repair/oneTimeRepair/appeal',
            meta: {
              title: '400回访问题申诉',
              keepAlive: true
            },
            component: AsyncComponent('repair/oneTimeRepair/appeal/index')
          }
        ]
      },
      {
        path: '/repair/quaback',
        meta: {
          title: '质量反馈'
        },
        redirect: '/repair/quaback/repairOrder',
        component: RouteView,
        children: [
          {
            path: '/repair/quaback/repairOrder',
            meta: {
              title: '维修质量反馈单',
              keepAlive: true
            },
            component: AsyncComponent('repair/quaback/repairOrder/index')
          },
          {
            path: '/repair/quaback/claim',
            meta: {
              title: '处理质量反馈单',
              keepAlive: true
            },
            component: AsyncComponent('repair/quaback/deal/index')
          }
        ]
      },
      {
        path: '/repair/shortage',
        meta: {
          title: '欠料管理'
        },
        redirect: '/repair/shortage/maintenance',
        component: RouteView,
        children: [
          {
            path: '/repair/shortage/maintenance',
            meta: {
              title: '维护欠料单',
              keepAlive: true
            },
            component: AsyncComponent('repair/shortage/maintenance/index')
          }
        ]
      },
      {
        path: '/repair/case',
        meta: {
          title: '维修案例'
        },
        redirect: '/repair/case/upload',
        component: RouteView,
        children: [
          {
            path: '/repair/case/upload',
            meta: {
              title: '维修案例上传',
              keepAlive: true
            },
            component: AsyncComponent('repair/case/upload/index')
          },
          {
            path: '/repair/case/search',
            meta: {
              title: '查询维修案例',
              keepAlive: true
            },
            component: AsyncComponent('repair/case/search/index')
          }
        ]
      },


      {
        path: '/repair/otherBusiness',
        meta: {
          title: '其他业务'
        },
        redirect: '/repair/otherBusiness/maintainPDI',
        component: RouteView,
        children: [
          {
            path: '/repair/otherBusiness/maintainPDI',
            meta: {
              title: '维护PDI申请单',
              keepAlive: true
            },
            component: AsyncComponent('repair/otherBusiness/maintainPDI/index')
          }
        ]
      },
      // add end 2019/11/19
      {
        path: '/repair/extension',
        meta: {
          title: '延保估算'
        },
        redirect: '/repair/extension/estimateExtension',
        component: RouteView,
        children: [
          {
            path: '/repair/extension/maintain',
            meta: {
              title: '延保订单维护',
              keepAlive: true
            },
            component: AsyncComponent('repair/extension/maintain')
          },
          {
            path: '/repair/extension/query',
            meta: {
              title: '延保订单查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/extension/query')
          },
          {
            path: '/repair/extension/productQuery',
            meta: {
              title: '延保产品查询',
              keepAlive: true
            },
            component: AsyncComponent('repair/extension/productQuery')
          },
          {
            path: '/repair/extension/estimateExtension',
            meta: {
              title: '延保估算单',
              keepAlive: true,
              trainModuleId: '554013'
            },
            component: AsyncComponent('repair/extension/estimateExtension')
          }
        ]
      }
    ]
  }
  /** 维修管理 E */
];

export default menuRoutes;
